<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: hold_session.php 56 2013-09-21 11:58:07Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 56 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:58:07 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright © since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	© 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	© 2002-2003 osCommerce - www.oscommerce.com
* 	© 2003     nextcommerce - www.nextcommerce.org
* 	© 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

require('includes/application_top.php');$refreshTime=(((SESSION_EXPIRE_TIME)-SESSION_REFRESH_WARNING)*60);?><html><head><title>SEO:mercari - Session Erhaltung für den Adminbereich</title><?php if (isset($_SESSION['customer_id']) && ($refreshTime > 0)) { ?><script type="text/javascript">function SessionTimeoutWarning(){if(window.confirm('<?php printf(TEXT_SESSION_EXPIRED,SESSION_REFRESH_WARNING) ?>')){location.href=location.href;}else{parent.location='../logoff.php'}}function SessionTimeoutClock(topRef,expire){expire.setSeconds(expire.getSeconds()-1);if(expire.getFullYear()<2011){parent.location.search='../logoff.php';return;}if(topRef){topRef.innerHTML='<?php echo TEXT_SESSION ?>'+(''+expire).match(/\d\d:\d\d:\d\d/);}}window.onload=function(){var expire=new Date(2011,0,1);expire.setSeconds(<?php echo SESSION_EXPIRE_TIME; ?>*60);var topRef=top.document.getElementById('sessioncounter');window.setTimeout(SessionTimeoutWarning,<?php print $refreshTime; ?>*1000);window.setInterval(function(){SessionTimeoutClock(topRef,expire);}, 1000);}</script><?php } ?></head><body><span id="test"></span></body></html>